package stool.singletonpattern.part1;

/**
 * @Author Felix YF Dong
 * @Date 2021/5/12
 */
public class Main {

    public static void main(String[] args) {
        Singleton singleton1 = Singleton.getSingleton();
        Singleton singleton2 = Singleton.getSingleton();

        if (singleton1 == singleton2)
        {
            System.out.println("Y");
        }
        else
        {
            System.out.println("N");
        }
    }
}
